﻿# CMakeList.txt : Top-level CMake project file, do global configuration
# and include sub-projects here.
#

add_executable(ThreadPool_test "testThreadPool.cpp")

# 项目测试选项
enable_testing()
add_test(NAME ThreadPool_test
         COMMAND ThreadPool_test)

find_package(GTest REQUIRED)                                      # 寻找gtest库
include_directories(${GTEST_INCLUDE_DIRS})                        # 包含gtest头文件目录
target_link_libraries(ThreadPool_test ${GTEST_LIBRARIES} pthread) 

target_include_directories(ThreadPool_test PRIVATE ${CMAKE_SOURCE_DIR}/ThreadPool_pro)
target_link_libraries(ThreadPool_test ThreadPool_pro_lib)